package com.wf.course.service.impl;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.utils.page.PageBean;
import com.wf.course.dao.IMemberDeviceMapper;
import com.wf.course.model.member.MemberDevice;
import com.wf.course.service.IMemberDeviceService;

@Service
@Transactional
public class IMemberDeviceServiceImpl implements IMemberDeviceService {
	
	@Autowired
	private IMemberDeviceMapper mapper;

	@Override
	public void getMemberDeviceList(PageBean<MemberDevice> pageBean) {
		// TODO Auto-generated method stub
		pageBean.setResults(mapper.getMemberDeviceList(pageBean));
		pageBean.setTotalCount(mapper.getMemberDeviceCount(pageBean));
	}

	@Override
	public MemberDevice getMemberDevice(Integer id) {
		// TODO Auto-generated method stub
		return mapper.getMemberDevice(id);
	}

	@Override
	public void savaMemberDevice(MemberDevice memberDevice) {
		// TODO Auto-generated method stub
		mapper.savaMemberDevice(memberDevice);
	}

	@Override
	public void updMemberDevice(MemberDevice memberDevice) {
		// TODO Auto-generated method stub
		mapper.updMemberDevice(memberDevice);
	}

	@Override
	public void delMemberDevice(Integer id) {
		// TODO Auto-generated method stub
		mapper.delMemberDevice(id);
	}

}
